//
//  ConInfomationDetailController.m
//  Shengzhuli
//
//  Created by FXGuo on 2017/4/20.
//  Copyright © 2017年 kamangkeji. All rights reserved.
//

#import "ConInfomationDetailController.h"
#import "ActivityNetService.h"
#import "MBProgressHUD+MJ.h"

@interface ConInfomationDetailController ()

@property (nonatomic,weak) UIWebView *web;

@end

@implementation ConInfomationDetailController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    UIWebView *web = [[UIWebView alloc]initWithFrame:self.view.bounds];
    [self.view addSubview:web];
    self.web = web;
    
    [self getInfoDetail];
}

- (void)getInfoDetail
{
    NSMutableDictionary *parame = [NSMutableDictionary dictionary];
    parame[@"id"] = self.ID;
    [self showClearBgWaiter];
    [ActivityNetService getInformationDetailWithParame:parame response:^(BOOL success, NSString *msg, NSString *detailStr) {
        [self hideWaiter];
        if (success) {
            [self.web loadHTMLString:detailStr baseURL:nil];
        }else{
            [MBProgressHUD showError:msg toView:self.view];
        }
    }];
}



@end
